Skip to content

fix: change onBrokenLinks to 'warn' to prevent doc build failures#2042

Closed
Yilialinn wants to merge 1 commit into
masterfrom
fix/doc-broken-links-navigation
Closed

fix: change onBrokenLinks to 'warn' to prevent doc build failures#2042
Yilialinn wants to merge 1 commit into
masterfrom
fix/doc-broken-links-navigation

Conversation

@Yilialinn
Copy link
Copy Markdown
Contributor

Summary

Fix doc workspace build failures caused by navbar links to website workspace paths being treated as errors.

Problem

The doc build started failing on May 13, 2026 with error:

[06:48:20] Build website's all parts [failed]
[06:48:20] → Build failed for: doc
Error: Build failed for: doc

Root cause: The doc workspace's docusaurus.config.js had onBrokenLinks: 'log', which caused Docusaurus to fail the build when encountering navbar links to paths that exist in the website workspace but not in the doc workspace (like /, /blog, /learning-center, /downloads, /help, /team, /showcase, /plugins).

Solution

Changed onBrokenLinks: 'log' to onBrokenLinks: 'warn' in doc/docusaurus.config.js.

This allows the build to complete successfully while still alerting developers about actual broken documentation links. The navbar links are intentionally cross-workspace references and should not fail the build.

Testing

  • Local build test: yarn workspace doc build
  • CI build should pass

Related

The doc workspace build was failing because navbar links pointing to
website workspace paths (/, /blog, /learning-center, etc.) were being
treated as errors when onBrokenLinks was set to 'log'.

Changing to 'warn' allows the build to complete while still alerting
developers to actual broken documentation links.

This fixes the doc build failures seen in CI runs starting from
May 13, 2026.
@Yilialinn
Copy link
Copy Markdown
Contributor Author

Closing this PR. After reconsideration, we should fix the broken links instead of suppressing the errors. Will submit a proper fix shortly.

@Yilialinn Yilialinn closed this May 13, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the doc workspace’s Docusaurus configuration to avoid build failures caused by intentionally cross-workspace navbar links being treated as broken.

Changes:

  • Changed onBrokenLinks handling from logging/failing behavior to warnings in the doc workspace config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread doc/docusaurus.config.js
},
},
onBrokenLinks: 'log',
onBrokenLinks: 'warn',
@Yilialinn Yilialinn deleted the fix/doc-broken-links-navigation branch May 13, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants